package com.ibp.comparator;

import java.util.Comparator;

import com.ibp.entity.ServiceNode;
import com.ibp.entity.SysRunManage;
import com.ibp.utils.StringUtil;

public class ComparatorSN implements Comparator<ServiceNode> {

	  @Override
	  public int compare(ServiceNode o1, ServiceNode o2) {
			String n1 = StringUtil.isEmpty(o1.getServiceNode())?"z":o1.getServiceNode();
			String n2 = StringUtil.isEmpty(o2.getServiceNode())?"z":o2.getServiceNode();
			int flag = n1.compareTo(n2);
			return flag ;
	  }
}
